package com.example.commom.exception;

import lombok.Getter;

@Getter
public class CustomException extends RuntimeException{

    /**
     *  自定义异常
     */
    private final Integer code;

    public CustomException(String msg, Integer code){
        super(msg);
        this.code = code;
    }

}
